import { createRequestTypes } from '@UTILS/reduxHelper'

export const GET_MY_DOCTOR_SESSTIONS = createRequestTypes('GET_MY_DOCTOR_SESSTIONS')
export const UPDATE_MY_DOCTOR_ACTIVE_SESSION = createRequestTypes('UPDATE_MY_DOCTOR_ACTIVE_SESSION')
export const GET_MY_DOCTOR_MESSAGE_NUMBER = createRequestTypes('GET_MY_DOCTOR_MESSAGE_NUMBER')
export const GET_MY_DOCTOR_SESSION_BY_ID = createRequestTypes('GET_MY_DOCTOR_SESSION_BY_ID')
export const REDUCED_MY_DOCTOR_MESSAGE_NUMBER = createRequestTypes('REDUCED_MY_DOCTOR_MESSAGE_NUMBER')

export default {
  dispatchGetDoctorMessageList(payload) {
    return {
      type: GET_MY_DOCTOR_SESSTIONS.REQUEST,
      payload
    }
  },
  dispatchGetMyDoctorSessionById(sId) {
    return {
      type: GET_MY_DOCTOR_SESSION_BY_ID.REQUEST,
      sId,
    }
  },
  dispatchGetMyDoctorMessageNum(sId) {
    return {
      type: GET_MY_DOCTOR_MESSAGE_NUMBER.REQUEST,
      sId,
    }
  }
}
